/*
 * v 0.1
 * Erste Version nur zur Visualisierung der Grundidee. Bisher unkommentiert und ungeordnet.
 */
/*
 * MDgui.java
 *
 * Created on 15.06.2011, 11:37:34
 */
/**
 *
 * @author xerophobia
 */
public class MDgui extends javax.swing.JFrame {

    /** Creates new form MDgui */
    public MDgui() {
        initComponents();
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        guiVersion = new javax.swing.JLabel();
        tabs = new javax.swing.JTabbedPane();
        tab_bearbeiten = new javax.swing.JPanel();
        tab_bearbeiten_namefield = new javax.swing.JScrollPane();
        tab_bearbeiten_namelist = new javax.swing.JList();
        tab_suchen = new javax.swing.JPanel();
        tab_erstellen = new javax.swing.JPanel();
        tab_ep = new javax.swing.JPanel();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        setMinimumSize(new java.awt.Dimension(800, 600));

        guiVersion.setText("Midnight Dance Database GUI v0.1");

        tab_bearbeiten_namelist.setModel(new javax.swing.AbstractListModel() {
            String[] strings = { "Item 1", "Item 2", "Item 3", "Item 4", "Item 5" };
            public int getSize() { return strings.length; }
            public Object getElementAt(int i) { return strings[i]; }
        });
        tab_bearbeiten_namefield.setViewportView(tab_bearbeiten_namelist);

        javax.swing.GroupLayout tab_bearbeitenLayout = new javax.swing.GroupLayout(tab_bearbeiten);
        tab_bearbeiten.setLayout(tab_bearbeitenLayout);
        tab_bearbeitenLayout.setHorizontalGroup(
            tab_bearbeitenLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(tab_bearbeitenLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(tab_bearbeiten_namefield, javax.swing.GroupLayout.PREFERRED_SIZE, 281, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(504, Short.MAX_VALUE))
        );
        tab_bearbeitenLayout.setVerticalGroup(
            tab_bearbeitenLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(tab_bearbeitenLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(tab_bearbeiten_namefield, javax.swing.GroupLayout.DEFAULT_SIZE, 489, Short.MAX_VALUE)
                .addContainerGap())
        );

        tabs.addTab("Bearbeiten", tab_bearbeiten);

        javax.swing.GroupLayout tab_suchenLayout = new javax.swing.GroupLayout(tab_suchen);
        tab_suchen.setLayout(tab_suchenLayout);
        tab_suchenLayout.setHorizontalGroup(
            tab_suchenLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 795, Short.MAX_VALUE)
        );
        tab_suchenLayout.setVerticalGroup(
            tab_suchenLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 511, Short.MAX_VALUE)
        );

        tabs.addTab("Suchen", tab_suchen);

        javax.swing.GroupLayout tab_erstellenLayout = new javax.swing.GroupLayout(tab_erstellen);
        tab_erstellen.setLayout(tab_erstellenLayout);
        tab_erstellenLayout.setHorizontalGroup(
            tab_erstellenLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 795, Short.MAX_VALUE)
        );
        tab_erstellenLayout.setVerticalGroup(
            tab_erstellenLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 511, Short.MAX_VALUE)
        );

        tabs.addTab("Erstellen", tab_erstellen);

        javax.swing.GroupLayout tab_epLayout = new javax.swing.GroupLayout(tab_ep);
        tab_ep.setLayout(tab_epLayout);
        tab_epLayout.setHorizontalGroup(
            tab_epLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 795, Short.MAX_VALUE)
        );
        tab_epLayout.setVerticalGroup(
            tab_epLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 511, Short.MAX_VALUE)
        );

        tabs.addTab("EP-Berichte", tab_ep);

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                .addContainerGap(622, Short.MAX_VALUE)
                .addComponent(guiVersion)
                .addContainerGap())
            .addComponent(tabs, javax.swing.GroupLayout.DEFAULT_SIZE, 800, Short.MAX_VALUE)
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                .addGap(25, 25, 25)
                .addComponent(tabs, javax.swing.GroupLayout.DEFAULT_SIZE, 539, Short.MAX_VALUE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(guiVersion)
                .addContainerGap())
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(new Runnable() {

            public void run() {
                new MDgui().setVisible(true);
            }
        });
    }
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JLabel guiVersion;
    private javax.swing.JPanel tab_bearbeiten;
    private javax.swing.JScrollPane tab_bearbeiten_namefield;
    private javax.swing.JList tab_bearbeiten_namelist;
    private javax.swing.JPanel tab_ep;
    private javax.swing.JPanel tab_erstellen;
    private javax.swing.JPanel tab_suchen;
    private javax.swing.JTabbedPane tabs;
    // End of variables declaration//GEN-END:variables
}
